package com.zunipe.trainticketsystem.database.handler;

import com.zunipe.trainticketsystem.TrainTicketApplication;
import com.zunipe.trainticketsystem.database.dao.UserDao;
import com.zunipe.trainticketsystem.database.entity.User;

public class UserHandler {

    private final UserDao userDao;

    public UserHandler() {
        userDao = TrainTicketApplication.getInstance().getUserDao();
    }

    public User getUserById(int id) {
        return userDao.findById(id);
    }
}
